package com.qn.visitor.analyze.resolver;

import com.qn.visitor.analyze.ipaddressr.IpAddressrContext;
import com.qn.visitor.model.UserVisitorRequest;
import com.qn.visitor.model.bo.analyze.IpAddressModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Component
public class IpAddressrResolver implements IResolver<IpAddressModel> {

    @Autowired
    IpAddressrContext context;

    @Override
    public IpAddressModel rsolver(UserVisitorRequest ubrBo) throws Exception {
        return context.analyze(ubrBo);
    }

}
